import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
// react-redux 就是将组件和仓库进行关联的
import {Provider} from "react-redux"
import App from './views/app';
import Appfather from './pages/Appfather';
import store from './store';
import {BrowserRouter as Router,HashRouter} from "react-router-dom"

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  // 将仓库注入到组件中去
  <Provider store={store}>
     <HashRouter>
        <App />
  </HashRouter>
  </Provider>
 
  
 
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals

